package com.lin.bank.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.bank.entity.TransactionRecord;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;


public interface TransactionRecordService extends IService<TransactionRecord> {

    IPage<TransactionRecord> selectPage(String cardNo, String transactionDate1, String transactionDate2, Integer current, Integer size);

    String sendMsg(String cardNo,String cardNo2,Double remark,Double balance1,Double balance2);

    @RabbitListener(queues = "queueA")
    void receive(Message message, Channel channel);
}
